import React, { useState, useEffect } from 'react'
import { View, Image } from '@tarojs/components'

import './index.less'

export default (props: any) => {
  const { src, txt1, txt2 } = props.data
  return (
    <View className='bannerW'>
      <Image className='banner2' src={src}></Image>
      <View className='bannerTxt1'>{txt1}</View>
      <View className='bannerTxt2'>{txt2}</View>
    </View>
  );
};
